import http from "../services/http";
//获取验证码
export const GetCaptcha = (data) => http("GET", "/captcha/sent", data);
//验证验证码
export const GetCaptchaVerify = (data) => http("POST", "/captcha/verify", data);
//检测号码是否已注册
export const GetHasRegist = (data) =>
  http("GET", "/cellphone/existence/check", data);
//注册
export const GetUserRegist = (data) =>
  http("POST", "/register/cellphone", data);
//登录
export const GetUserLogin = (data) => http("POST", "/login/cellphone", data);
//刷新登录
export const GetUserLoginRefresh = (data) =>
  http("GET", "/login/refresh", data);
//退出
export const GetUserLoginOut = (data) => http("POST", "/logout", data);
//获取用户信息
export const GetUserInfo = (data) => http("POST", "/user/detail", data);
//获取用户播放歌单
export const GetUserPlayList = (data) => http("GET", "/user/playlist", data);
